<?php /* Smarty version Smarty-3.1.14, created on 2013-07-26 09:14:04
         compiled from ".\templates\createUser.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2932651f1f084da1300-68926062%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '658cfe174a283d092f493c44b48a82a5430b737f' => 
    array (
      0 => '.\\templates\\createUser.tpl',
      1 => 1374643710,
      2 => 'file',
    ),
    'e5c25ecb0f875a98a3e481fa57260440878aa355' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\stallion\\admin\\templates\\main.tpl',
      1 => 1374671331,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2932651f1f084da1300-68926062',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    's_activIdsAdmin' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51f1f085028d14_55688486',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51f1f085028d14_55688486')) {function content_51f1f085028d14_55688486($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Stallion Enterprise</title>
<link href="css/custom.css" rel="stylesheet" type="text/css" />

<script src="./js/jquery.min.js">
</script>
<script type="text/javascript">
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function emailMatch()
{

  var password = $(".password").val();
  var retypePassword = $('.retypePassword').val();
	if(password != retypePassword)
	{
		alert ("Password Not Same...");
    $('.password').focus(); 
    $('.password').val(""); 
    $('.retypePassword').val(""); 
  }
  else 
  {
    return flase;
  }      
}
</script>

</head>
<body>
<div class="pagesize">
  <div class="header">
    <div class="logo"><img src="images/logo.jpg"  alt=""/></div>
    <div class="menu">
      <ul>
        <li><a href="index.php" class="select">Home</a></li>
        <li><a href="createUser.php">Create User</a></li>
        <li><a href="item.php">Products</a></li>
        <li><a href="list.php">Contact List</a></li>
        <li><a href="userDoc.php">Upload Documents</a></li>
        <li><a href="myDoc.php">User Documents</a></li>
        <?php if ($_smarty_tpl->tpl_vars['s_activIdsAdmin']->value>0){?>
          <li class="last"><a href="logout.php">Logout</a></li>
        <?php }?>
      </ul>
    </div>
  </div>
  <div class="clr"></div>
	<!-- body block start please fill your body contain add this block-->
	  </br></br></br>
	  
<form action="createUser.php" method="POST"> 
<table border="1" align="center">
<body>
<h1 align="center">Create User</h1>
<tbody id="mainDiv">
<tr id="one">
	<td>Company :</td>
	<td><input type="text" name="company"></td>
</tr>
<tr id="one">
	<td>First Name:</td>
	<td><input type="text" name="fName"></td>
</tr>
<tr>
	<td>Middle Name:</td>
	<td><input type="text" name="mName"></td>
  </tr>
	<tr>
	<td>Last Name:</td>
	<td><input type="text" name="lName"></td>
	</tr>
	<tr>
	<td>Phone 1:</td>
	<td><input type="text" name="ph1"></td>
	</tr>
	<tr>
	<td>Phone 2 :</td>
	<td><input type="text" name="ph2"></td>
	</tr>
	<tr>
	<td>Email :</td>
	<td><input type="text" name="email"></td>
	</tr>
	<tr>
	<td>Web :</td>
	<td><input type="text" name="web"></td>
	</tr>
	<tr>
	<td>Password :</td>
	<td><input type="password" name="password" class="password"></td>
	</tr>
	<tr>
	<td>Retype Password :</td>
	<td><input type="password" name="retypePassword" class="retypePassword" onblur="emailMatch();"></td>
	</tr>
</tr>
</tbody>
<tr>
	<td colspan="3" align="center"><input type="submit" name="submit" value="Submit"></td>
</tr>
</body>
</table>
</form>
<br>
<h1 align="center">User List</h1>
<br>
<table align="center" border="2">
	<tr>
		<td>&nbsp;</td>
		<td>Company</td>
		<td>First name</td>
		<td>Middle name</td>
		<td>Last name</td>
		<td>Phone 1</td>
		<td>Phone 2</td>
		<td>email</td>
		<td>Web</td>
  </tr>
  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['userArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
  <tr>
  	<td><a href="userDelete.php?userId=<?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['userId'];?>
" onclick="return myFunction();">Delete</a>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['company'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fName'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['mName'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['lName'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['ph1'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['ph2'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['email'];?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['userArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['web'];?>
</td>
  </tr>
 <?php endfor; endif; ?>
</table>

	<!-- body block end please fill your body contain add this block-->
</div>
<div class="clr"></div>
<div class="bottom">
  <div class="footer">
    <div class="footerline"></div>
    <div class="ftleft">
      <ul>
        <li><a href="index.php" class="first">Home</a></li>
        <li><a href="#">Group of Companies</a></li>
        <li><a href="#">Products</a></li>
        <li><a href="#">About Us</a></li>
        <li><a href="createUser.php">Create User</a></li>
        <li><a href="item.php">Item</a></li>
        <li><a href="list.php">Contact List</a></li>
        <li><a href="userDoc.php">Upload Documents</a></li>
        <li><a href="myDoc.php">User Documents</a></li>
        <?php if ($_smarty_tpl->tpl_vars['s_activIdsAdmin']->value>0){?>
          <li class="last"><a href="logout.php">Logout</a></li>
        <?php }?>
      </ul>
      <div class="copyright">© Copyright 2013 Stallion. All Right Reserved.</div>
    </div>
    <div class="ftright"><img src="images/fb.png" alt="" />&nbsp;<img src="images/tw.png" alt="" />&nbsp;<img src="images/li.png" alt="" />&nbsp;<img src="images/gp.png" alt="" /></div>
  </div>
</div>
</body>
</html>
<?php }} ?>